<%--
  Created by IntelliJ IDEA.
  User: glxyC113
  Date: 2021/11/22
  Time: 11:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>药品分发</title>
    <link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
    <script type="text/javascript">

        $(function(){
            $('tbody tr:odd').addClass("trLight");
            $(".select-all").click(function(){
                if($(this).attr("checked")){
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", true);
                    });
                }else{
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", false);
                    });
                }
            });
        });

        function back(){
            window.location.href="<%=basePath%>ypffListController";
        }
        function ffyp(){
            var roid = $("#roid").val();
            alert("roid="+roid)
            window.location.href="<%=basePath%>changeypffStatus?roid=" + roid;
        }
    </script>
    <style type="text/css">
        body {
            background:#FFF
        }
    </style>
</head>
<body>
<div id="contentWrap">
    <input type="hidden" name="roid" id="roid" value="${roid}"/>
    <!--表格控件 -->
    <div id="widget table-widget">
        <div class="pageTitle">医生开药列表</div>
        <div class="pageColumn">
            <table>
                <thead>
                <th width="">挂号号</th>
                <th width="">药品ID</th>
                <th width="">药品名称</th>
                <th width="">数量</th>
                <th width="">描述</th>
                </thead>
                <tbody>
                <c:forEach items="${kyList}" var="yp">
                    <tr>
                        <td>${yp.roid}</td>
                        <td>${yp.drugsid }</td>
                        <td>${yp.drugname }</td>
                        <td>${yp.num }</td>
                        <td>${yp.descs }</td>
<%--                        <td>--%>
<%--                        <a onclick="ypff('${ro.roid }')"><img src="<%=basePath%>images/icon/edit2.png" width="16" height="16" /></a>--%>
<%--                        </td>--%>
                    </tr>
                </c:forEach>
                <tr><td colspan="5">
                    <input type="button" onclick="ffyp()" value="发放药品"/>&nbsp;
                    <input type="button" value="返回" onclick="back()"/> </td></tr>
                </tbody>
            </table>
        </div>
    </div><!-- #widget -->
</div>
</body>
</html>
